package com.yx.learn.service;

import java.util.List;

import com.yx.learn.domain.Authority;
import com.yx.learn.domain.UserAuthority;

public interface UserAuthorityService {
	//通过用户编号获取用户的所有权限
	public List<Authority> getUserAuthorityByNo(String employNo) throws Exception;
	//获取通过用户编号获取用户的菜单级权限
	public List<Authority> getUserAuthorityOfMenuByNo(String employNo) throws Exception;
	
	public List<UserAuthority> getUserAuthorities() throws Exception;
	
	public UserAuthority findUserAuthority(int uid,int aid) throws Exception ;
	
	public List<Integer> getUserAuthorityUID(int uid) throws Exception;

	public List<Authority> findAllAuthority(int uid, int aid) throws Exception;

	public void saveUserAuthority(UserAuthority userAuthority) throws Exception;

	public void deleteUserAuthority(UserAuthority userAuthority) throws Exception;
	
//	public List<Integer> getUserRoleRID(int uid) throws Exception;
//	
//	public List<Authority> findAllRole(int uid, int id) throws Exception;
//	
//	public List<Integer> getUserGroupGID(int uid) throws Exception;
//	
//	public List<Authority> findAllGroup(int uid, int id) throws Exception;

	public UserAuthority findById(int uaid) throws Exception;
	
	public List<Authority> getAuthorityByUid(int uid) throws Exception;

}
